import React, { useState } from "react";
import ClassComp from "./views/classComp";
import FuncComp from "./views/funcComp";
import TestComp from "./views/testComp";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import { Provider } from 'react-redux'
import store from './store'
const App = () => {
  const [show, setShow] = useState(true);
  return (
    <Provider store={ store }>
      <BrowserRouter>
        <Routes>
          <Route
            path="/"
            element={<ClassComp sex="女" qwe="qwe"></ClassComp>}
          ></Route>
          <Route
            path="/fn/:id"
            element={<FuncComp name="哈哈" message="1234"></FuncComp>}
          ></Route>
           <Route
            path="/test"
            element={<TestComp></TestComp>}
          ></Route>
        </Routes>
      </BrowserRouter>
    </Provider>
  );
};

export default App;
